package com.mar.framecompress.impl;

import java.nio.ByteBuffer;

import com.mar.framecompress.IDecoder;
import com.mar.framecompress.IEncoder;

/**
 * 
 * @author mar
 */
public class RawEncoderDecoder implements IDecoder, IEncoder {
	
	public void decode(ByteBuffer inBuff, ByteBuffer outBuff) {
		outBuff.put(inBuff);
		inBuff.flip();
		outBuff.flip();
	}

	public void encode(ByteBuffer inBuff, ByteBuffer outBuff) {
		outBuff.put(inBuff);
		inBuff.flip();
		outBuff.flip();
	}

}
